package com.example.springboot.aop.controller;

import com.example.springboot.aop.annotation.SystemControllerLog;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @desc aop测试日志记录
 * @Author wangsh
 * @date 2018/5/7 20:57
 */
@RestController
@RequestMapping("/aop")
public class AopController {

	@SystemControllerLog(LogAction = "查询", ModuleID = 12, LogContent = "测试aop示例")
	@ResponseBody
	@RequestMapping("/hello")
	public String hello() {

		return "hello";
	}
}
